package com.javasm.transfer.orderTransfer;

import com.javasm.domin.entity.orderEntity.B2cReturnGoods;
import com.javasm.domin.vo.orderVo.OrderReceiverReturn;
import com.javasm.transfer.base.BaseTransfer;
import org.springframework.stereotype.Component;

/**
 * @Author：liyangsong
 * @Version：1.0
 * @Date：2021/11/21-17:52
 * @Since:jdk1.8
 * @Description:
 */

@Component
public class returnOrderTransfer extends BaseTransfer<B2cReturnGoods, OrderReceiverReturn> {
//    @Resource
//    private B2cDataDictionaryMapper b2cDataDictionaryMapper;
//    //1.订单动作 2 订单状态 3 业务类型 4 配送方式  5 支付方式  6订单分类订单类型 ',
//    public List<OrderAndReceiver> Escape(List<B2cReturnGoods> b2cReturnGoodsList) {
//        List<OrderReceiverReturn> orderAndReceiverListVo = super.toVO(b2cReturnGoodsList);
//        for (int i = 0; i < orderAndReceiverListVo.size(); i++) {
//            B2cReturnGoods b2cReturnGoods = b2cReturnGoodsList.get(i);
//            OrderReceiverReturn orderReceiverReturn = orderAndReceiverListVo.get(i);
//            orderReceiverReturn.setOrderAction(dic.get(1).get(b2cOrder.getOrderAction()));
//            orderReceiverReturn.setOrderStatus(dic.get(2).get(b2cOrder.getOrderStatus()));
//            orderReceiverReturn.setBusinessType(dic.get(3).get(b2cOrder.getBusinessType()));
//            orderReceiverReturn.setDeliveryStyle(dic.get(4).get(b2cOrder.getDeliveryStyle()));
//            orderReceiverReturn.setPaymentMethodId(dic.get(5).get(b2cOrder.getPaymentMethodId()));
//            orderReceiverReturn.setOrderType(dic.get(6).get(b2cOrder.getOrderType()));
//        }
//        return orderAndReceiverListVo;
//    }
}
